<include file="./admin-header" />

	<!-- BEGIN PAGE -->
	<div class="page-content">        
		<!-- BEGIN PAGE HEADER-->
		<div class="row">
			<div class="col-md-12">
				<!-- BEGIN PAGE TITLE & BREADCRUMB-->
				<h3 class="page-title">
					{$Think.lang.text_config_web} <small>{$Think.lang.text_config_web_tips_en}</small>
				</h3>
				<ul class="page-breadcrumb breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="{:U('Index/index')}">{$Think.lang.text_home}</a> 
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="{:U('Config/group')}">{$Think.lang.text_system}</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li><a href="{:U('Config/group')}">{$Think.lang.text_config_web}</a></li>
				</ul>
				<!-- END PAGE TITLE & BREADCRUMB-->
			</div>
		</div>
		<!-- END PAGE HEADER-->
		<!-- BEGIN PAGE CONTENT-->
		<div class="row">
			<div class="col-md-12">
				<div class="tabbable tabbable-custom boxless">
					<ul class="nav nav-tabs">
					<!-- <volist name="group" id="gp" key="k"> -->
						<li <if condition="$groupid eq $k">class="active"</if>>
							<a href="{:U('group',array('groupid'=>$k))}">{$gp}{$Think.lang.text_config}</a></li>
					<!-- </volist> -->
					</ul>
					<div class="tab-content">
						<form name="myform" id="myform" action="{:U('save')}" method="post">
							<div class="tab-pane active" id="tab_{$key}">
								<div class="row">
									<div class="col-md-12">
										<table class="table table-bordered">
										<!-- <volist name="list" id="config" key="key"> -->
										<tr>
											<td>
												<label class="control-label">{$config['config_title']}</label>
											</td>
											<td>
												<switch name="config.config_type">
													<case value="1">
														<input type="text" class="form-control" name="config[{$config.config_name}]" value="{$config['config_value']}">
													</case>
													<case value="2">
														<input type="text" class="form-control" name="config[{$config.config_name}]" value="{$config['config_value']}">
													</case>
													<case value="3">
														<textarea class="form-control" name="config[{$config.config_name}]" rows="3">{$config['config_value']}</textarea>
													</case>
													<case value="4">
														<textarea class="form-control" name="config[{$config.config_name}]" rows="3">{$config['config_value']}</textarea>
													</case>
													<case value="5">
														<select name="config[{$config.config_name}]" class="form-control input-small">
															<!-- <volist name="config['config_extra']" id="extra"> -->
																<option value="{$key}" <eq name="config['config_value']" value="$key">selected</eq>>{$extra}</option>
															<!-- </volist> -->
														</select>
													</case>
												</switch>
												<span class="help-block">* （{$config.config_remark}）</span>
											</td>
										</tr>
									<!-- </volist> -->
									</table>
									</div>
								</div>
								<!-- <if condition="!empty($list)"> -->
								<div class="fluid">
									<div class="col-md-offset-3 col-md-9">
										<button type="submit" name="dosubmit" class="btn green">
											<i class="fa fa-check"></i> {$Think.lang.button_submit}</button>                          
									</div>
								</div>
								<!-- </if> -->
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- END PAGE CONTENT-->
	</div>
	<!-- END PAGE -->
	<include file="./admin-js" />
	<script>
		jQuery(document).ready(function() {
		   App.init();
		});
	</script>

<include file="./admin-footer" />